package com.hgvip.controller;

import com.hgvip.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author arnold.zhu
 * @date 2018/3/26
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping("/lock1")
    public Object testLock1() {
        testService.doSomething();
        return "查询成功";
    }

}
